package com.black.cat.seed.entity;


import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import javax.validation.constraints.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 保单信息
 *
 * @author blackcat
 * @since 2021-03-25
 */
@Data
@ApiModel(description = "保单信息")
public class InsuranceNumber extends  BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull()
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "保单编号")
    private String number;

    @ApiModelProperty(value = "投保企业")
    private String companyName;

    @ApiModelProperty(value = "参保险种")
    private String insuranceType;

    @ApiModelProperty(value = "保费（万元）")
    private String expense;

    @ApiModelProperty(value = "起保时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startDate;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endDate;

    @ApiModelProperty(value = "被保险人")
    private String insured;

    @ApiModelProperty(value = "承保机构")
    private String insuranceBussiness;

    @ApiModelProperty(value = "所属年度")
    private String year;

    @ApiModelProperty(value = "备注")
    private String remark;

}
